home *** CD-ROM | disk | FTP | other *** search
- Path: news.clark.net!usenet
- From: gusty@clark.net (Harlan Messinger)
- Newsgroups: comp.lang.c++
- Subject: Re: HELP: syntax calling member fn() of returned object
- Date: Sat, 13 Jan 1996 15:27:59 GMT
- Organization: Clark Internet Services, Inc.
- Message-ID: <4d8j2k$5mc@clarknet.clark.net>
- References: <4d3gff$ga4@lib104.its.rpi.edu>
- NNTP-Posting-Host: gusty-ppp.clark.net
- Mime-Version: 1.0
- Content-Type: TEXT/PLAIN; charset=ISO-8859-1
- Content-Transfer-Encoding: 8bit
- X-Newsreader: Forte Free Agent 1.0.82
-
- floydb1@lib104.its.rpi.edu (Barry B Floyd) wrote:
-
-
-
- >What is the syntax (if any) for calling a member function
- >of a returned object. For example:
-
- >// --------------------------------------
- >String MyClass::Function ( ... )
- >{
- > // code
- >}
-
- >// --------------------------------------
- >int Myclass::AnotherFn ( ... )
- >{
- > String a_string ;
-
- > a_string = Function ( ... ) ;
-
- > if ( a_string.length () == 0 )
- > // code
- >}
- >
- >// --------------------------------------
-
- >I would rather not have to do:
-
- > String a_string ;
-
- > a_string = Function ( ... ) ;
-
- >I would rather do something like:
-
- > if ( Function ( ... ).length () == 0 )
-
- This should work.
-
- The 1990s: the Duh Decade
-
-